<script setup lang="ts">
import { useRoute, useRouter } from 'vue-router'
defineProps<{ msg: string }>()
const router = useRouter()
const login = () => {
  router.push({
    name: 'login',
  })
}
</script>

<template>
  <p>我是主页</p>
  <button @click="login">退出</button>
</template>
